package com.sharer.last.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.sharer.last.model.po.TagPO;
import com.sharer.last.model.vo.tag.TagBlogCountVO;

import java.util.List;

/**
 * 博客标签持久层接口
 *
 * @ClassName TagMapper
 * @Author wangjin
 * @Date 2023/5/5 20:55
 * @Description
 * @Version 1.0
 */
@Mapper
@Repository
public interface TagMapper extends BaseMapper<TagPO> {
    /**
     * 查询每个标签的博客数量
     *
     * @return
     */
    List<TagBlogCountVO> getTagBlogCount();
}
